home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Misc / Static / Makefile < prev   
Makefile  |  1995-09-04  |  1KB  |  70 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Screen    \
  4.             o.SWI    \
  5.             o.Validation    \
  6.             o.Dispatch    \
  7.  
  8.  
  9. LibName        =    Misc
  10.  
  11. # Template makefile which makes normal 
  12. # .o files for use in the main static
  13. # linking DeskLib.
  14.  
  15. # The macro $(ObjectFiles) should be set at the 
  16. # start of this file to be a space-separated
  17. # list of object files.
  18. # This is done by 'Makatic'.
  19.  
  20. # The macro $(LibName) should also be set at the 
  21. # start of this file, to be the name of the 
  22. # DeskLib sublibrary.
  23. # This is done by 'Makatic'.
  24.  
  25. # Compiler and linker flags, These can be anything. 
  26. # All essential flags are included in the macros 
  27. # $(CC) and $(ASM)
  28. #
  29. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  30. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  31.  
  32. CC        =    cc -c $(CCFlags)
  33. ASM        =    objasm $(ASMFlags)
  34.  
  35.  
  36. # -------------------------------------------------------
  37. # Everything below here should probably not be changed...
  38. # -------------------------------------------------------
  39.  
  40. # Here's what we want to make...
  41. #
  42. All:        $(ObjectFiles)
  43.  
  44.  
  45. VPATH = @.^
  46.  
  47. .SUFFIXES:    .c .s .o
  48.  
  49. .c.o:
  50.     $(CC) $< -o $@
  51.     
  52. .s.o:
  53.     $(ASM) -from $< -to $@
  54.  
  55.  
  56.  
  57. # Dynamic dependencies:
  58. o.Screen:    ^.c.Screen
  59. o.Screen:    DeskLib:h.Wimp
  60. o.Screen:    DeskLib:h.Core
  61. o.Screen:    DeskLib:h.SWI
  62. o.Screen:    DeskLib:h.Screen
  63. o.SWI:    ^.c.SWI
  64. o.SWI:    C:h.kernel
  65. o.SWI:    DeskLib:h.Core
  66. o.SWI:    DeskLib:h.SWI
  67. o.Validation:    ^.c.Validation
  68. o.Validation:    DeskLib:h.Core
  69. o.Validation:    DeskLib:h.Validation
  70.